package com.jacen.fzxs.web;

public class Pager {
	
	private Integer curPageNum;
	private Integer totalCount;
	private Integer pageSize;

	public Integer getPageStart() {
		return (curPageNum - 1) * pageSize+1;
	}

	public Integer getPageEnd() {
		return curPageNum * pageSize;
	}

	public Integer getCurPageNum() {
		return curPageNum;
	}

	public Integer getTotalCount() {
		return totalCount;
	}

	public void setTotalCount(Integer totalCount) {
		this.totalCount = totalCount;
	}

	public Integer getPageSize() {
		return pageSize;
	}

	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}

	public void setCurPageNum(Integer curPageNum) {
		this.curPageNum = curPageNum;
	}

	public Integer getTotalPageNum() {
		return this.totalCount / this.pageSize + (totalCount % pageSize == 0 ? 0 : 1);
	}

	public void setPageStart(Integer pageStart) {
		
	}

}
